import service from './indexApi';
import qs from 'qs';

const adminApi={
    login(admin){
        return service.post('/login',qs.stringify(admin));
    },
    roomIn(){
        return service.get('/admin/info/roomIn');
    },
    roomRprice(){
        return service.get('/admin/info/roomRprice');
    },
    todayInfo(){
        return service.get('/admin/info/todayInfo');
    },
    getLoginInfo(){
        return service.get('/admin/info/adminInfo');
    },
    updateInfo(information){
        return service.put('/admin/info',information);
    },
    captcha(){
        return service.get('/captcha');
    }
}
export default adminApi;